package com.hlkj.baojin.dao;

import com.hlkj.baojin.entity.CompanyArea;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.dao
 * @description:
 * @date 2019/1/9 10:49
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
@Repository
public interface ICompanyAreaDao extends MongoRepository<CompanyArea, String> {

    CompanyArea findByIdAndDelete(String id, Integer delete);

    CompanyArea findByBelongCompanyAndNameAndDelete(String belongCompany, String name, Integer delete);

    List<CompanyArea> findByBelongCompanyAndDelete(String belongCompany, Integer delete);

}
